using System;
using System.Collections.Generic;
using Illinois.Core.Interfaces;

namespace Illinois.Core.Models
{
  public class BurnDown : IBurnDown
  {
    public int Id { get; set; }

    public string Title { get; set; }

    public DateTime Start { get; set; }

    public DateTime End { get; set; }

    public int InitialStoryPoints { get; set; }

    public IList<IStoryPoints> StoryPointsList { get; set; }

    public int ProjectId { get; set; }

    public BurnDown()
      : this(string.Empty, DateTime.MinValue, DateTime.MinValue, default(int), default(int))
    {

    }

    public BurnDown(string title, DateTime start, DateTime end, int initialStoryPoints, int projectId)
    {
      Title = title;
      Start = start;
      End = end;
      InitialStoryPoints = initialStoryPoints;
      StoryPointsList = new List<IStoryPoints>();
      ProjectId = projectId;
    }
  }
}
